username = 'admin'
password = '123456'

for i in range(3):
    u = input('请输入账号:')
    p = input('请输入密码:')
    if u == username and p == password:
        print('登陆成功!')
        break
    else:
        print('用户名或密码错误')


# 做得不错
